<template>
  <div class="service">
        <h3>自助服务</h3>
        <div class="box" >
            <div class="small_box" v-for="(v,i) in arr" :key="i">
                <img :src="v.img" alt="">
                <p>{{v.text}}</p>
            </div>
        </div>
        <div class="text">
            <p>服务进度</p><span>近期暂无服务记录&nbsp;&nbsp;></span>
        </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            arr:[
                {img:"myimg/help/1.png",text:"外卖催单"},
                {img:"myimg/help/2.png",text:"邀请奖励查询"},
                {img:"myimg/help/3.png",text:"咖啡钱包购买"},
                {img:"myimg/help/4.png",text:"意见反馈"},
            ]
        }
    }
}
</script>

<style scoped>
.service{
    width: 3.56rem;
    height: 1.6rem;
    margin: auto;
    background-color: white;
    border-radius: 0.1rem;
}
.service h3{
    font-size: 0.14rem;
    line-height: 0.5rem;
    text-indent: 0.15rem;
}
.box{
    width: 3.57rem;
    height: 0.55rem; 
}
.small_box{
    display: flex;
    flex-direction: column;
    width: 0.75rem;
    height: 0.55rem;
    float: left;
    margin: 0 0.07rem;
    text-align: center;
}
.small_box img{
    width: 0.45rem;
    height: 0.4rem;
    margin: 0 auto;
}
.small_box>p{
    font-size: 0.1rem;
     width: 0.75rem;
     text-align: center;
}
.text{
    width: 3.3rem;
    height: 0.4rem;
    margin: auto;
    border-top: 1px solid #cccccc;
    line-height: 0.4rem;
    margin-top: 0.15rem;
}
.text>p{
    font-size: 0.12rem;
    line-height: 0.45rem;
    display: inline;
    
}
.text span{
    color: #cccccc;
    font-size: 0.12rem;
    line-height: 0.45rem;
    position: relative;
    left: 1.76rem;
}
</style>